package com.bolang.onlycode.demo.designPatterns.decorator;

public class PancakesDecotator extends AbstractPancakes{
    private AbstractPancakes abstractPancakes;
    public PancakesDecotator(AbstractPancakes abstractPancakes){
        this.abstractPancakes=abstractPancakes;
    }
    @Override
    protected String getMsg() {
        return this.abstractPancakes.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.abstractPancakes.getPrice();
    }
}
